tf= open("yeah.txt","a+",encoding='utf-8')
ls = ["最后一行插入"]
tf.writelines(ls)
tf.seek(2)
for line in tf:
    print(line)
tf.close()